import 'package:flutter/material.dart';

class biaotou extends StatelessWidget {
  biaotou({Key key, this.name, this.isplay}) : super(key: key);
  final String name;
  bool isplay = false;
  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.spaceBetween,
      children: [
        Container(
          child: Row(
            children: [
              Text(
                this.name,
                style: TextStyle(
                    color: Color(0xff353535),
                    fontSize: 17,
                    fontWeight: FontWeight.w700),
              ),
              isplay
                  ? Container(
                      margin: EdgeInsets.only(left: 5),
                      padding: EdgeInsets.symmetric(horizontal: 5, vertical: 2),
                      decoration: BoxDecoration(
                          color: Color(0xffdff2e8),
                          borderRadius: BorderRadius.circular(8)),
                      child: Row(
                        children: [
                          Icon(
                            Icons.play_arrow,
                            color: Color(0xff3be68f),
                            size: 20,
                          ),
                          Text(
                            '播放',
                            style: TextStyle(
                                fontSize: 12, fontWeight: FontWeight.w600),
                          )
                        ],
                      ),
                    )
                  : Container()
            ],
          ),
        ),
        Icon(
          Icons.more_horiz,
          color: Color(0xffb3b3b3),
        )
      ],
    );
  }
}
